home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Taifun / Taifun 036 (1987-11-15)(Ossowski, Stefan)(DE)(PD).zip / Taifun 036 (1987-11-15)(Ossowski, Stefan)(DE)(PD).adf / SiliCon / sil-icon_README < prev    next >
Text File  |  1989-01-18  |  3KB  |  47 lines

  1.                                                          [Revision 8701.3]
  2.  
  3.  
  4.                     Invoking Sili(Con:) from an icon
  5.                     ________________________________
  6.  
  7. Normally you will probably want to start Sili(Con:) running from the
  8. Startup-Sequence file, but you can also invoke it directly from the
  9. WorkBench if you use Xicon as an intermediary.  (You can't start this
  10. version DIRECTLY from an icon -- only from the CLI.)
  11.  
  12. "Sil-Icon" on this disk is an example of how to do this. Double-click
  13. on the icon to see it work, and investigate HOW it works by looking at
  14. the Info (from the WorkBench menu) for the icon and the startup scripts:
  15. Sil-Icon itself and Sil-Icon_script.  (And read on below...)
  16.  
  17. It is set up to start Sili(Con:) from this disk: if you want to move it
  18. to your own environment, you will probably have to change both the icon
  19. info and the startup scripts.  At startup time you have to have both Xicon
  20. and the DOS commands "NewCLI" and "Run" available.  NewCLI and Run should
  21. be in your C: directory; Xicon can be anywhere, provided the icon has its
  22. default tool set to the right pathname.
  23.  
  24. The mechanism of operation when you invoke the icon is as follows.
  25. The icon starts its tool Xicon, which notes from the first ToolTypes line
  26. (MODE=closewindow) that it is to close the window and terminate immediately
  27. it has done its work.  The directory it has been invoked from is recorded
  28. in a ram file (LOCDIR=), some explanatory text is displayed from the file
  29. "sil-icon_text", then it automatically continues with its associated script
  30. file "Sil-Icon".  This just uses the ram file to set the current directory
  31. correctly, and invokes newcli with the second file "Sil-Icon_script" to
  32. actually start sili (after a couple of informational messages).
  33.  
  34. The startup sequence may seems strangely complex, but it was done this way
  35. to make it a little less dependent on the actual disk configuration.  The
  36. first script sets the correct directory, while the second is supplied to
  37. newcli to invoke Sili(Con:) properly.  (In case you wondered, you COULD run
  38. Sili(Con:) directly from Xicon, but there are snags: you could issue
  39. commands all right -- and they would be executed -- but as mentioned in
  40. the Xicon Manual you can't use the Xicon window itself for console
  41. input, so you wouldn't be able to interact with programs when they
  42. needed it.  Working though NewCLI avoids these problems. In fact, you
  43. might find other uses for this approach where you want Xicon to run
  44. interactive commands.)
  45.  
  46.  
  47.